<!--
 * @Description: 首页
 * @Version: 1.0
 * @Autor: wq
 * @Date: 2021-08-04 20:45:41
 * @LastEditors: wq
 * @LastEditTime: 2021-08-06 14:27:52
 * @FilePath: \vue_project\mmpt\src\views\Home\index.vue
-->
<template>
  <div class="home">
    <el-button type="primary" @click="goPage(1)">开始测评</el-button>
    <el-button type="primary" @click="goPage(2)">测评记录</el-button>
  </div>
</template>

<script>
export default {
  name: "Home",
  methods: {
    goPage(type) {
      type === 1
        ? this.$router.push("/test")
        : this.$router.push("/test/record");
    }
  }
};
</script>
<style lang="scss" scoped>
.home {
  width: 100%;
}
</style>
